package com.movies.vo;

/**
 * Created by chemeng on 2017/3/27.
 */
public class Response {
    private ResponseHeader header;

    public ResponseHeader getHeader() {
        return header;
    }

    public void setHeader(ResponseHeader header) {
        this.header = header;
    }

    public Response() {
    }

    public Response(ResponseHeader header) {
        this.header = header;
    }

    public Response(boolean flag) {
        if (flag) {
            this.header = new ResponseHeader("0", "success");
        } else {
            this.header = new ResponseHeader("1", "failed");
        }
    }
}
